//
//  HomeATableViewCell.m
//  喜马拉雅首页
//
//  Created by admin on 15/12/21.
//  Copyright © 2015年 刘倩男. All rights reserved.
//

#import "HomeATableViewCell.h"

@interface HomeATableViewCell ()
@property (nonatomic, retain)UIImageView *myImageView;
@property (nonatomic, retain) UILabel *myLabel;
@property (nonatomic, retain) UILabel *label;
@end
@implementation HomeATableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubViews];
        
    }
    return self;
}

- (void)createSubViews{
    
    self.myImageView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 95, 95)];
    self.myImageView.backgroundColor = [UIColor purpleColor];
    [self addSubview:self.myImageView];
    
    self.myLabel = [[UILabel alloc] initWithFrame:CGRectMake(120, 20, 200, 50)];
    self.myLabel.text = @"周五见! 6档节目满足你八卦的心";
    [self.myLabel sizeToFit];
    [self addSubview:self.myLabel];
    
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(120, 50, 100, 50)];
    self.label.text = @"谁不曾开过夜谈会";
    self.label.textColor = [UIColor grayColor];
    self.label.font = [UIFont systemFontOfSize:13];
    [self.label sizeToFit];
    [self addSubview:self.label];
    
    
    UIImageView *imageView2 = [[UIImageView alloc] initWithFrame:CGRectMake(380, 50, 20, 20)];
    imageView2.image = [UIImage imageNamed:@"cell_arrow@2x.png"];
    [self addSubview:imageView2];

    
}

@end
